<div>
	<h3><?php echo $html->link($dealOrder['Deal']['title'],array("controller"=>"deals","action"=>"view",$dealOrder['DealOrder']['deal_id'])); ?></h3>
	<div class="clear"></div>
	<div class="order_information">
		<strong><?php echo __("Payment information");?></strong>
		<hr>
		<table class="noborder table">
			<tbody>
				<tr>
					<td><b>
						<?php echo __("Payment status");?></b>
					</td>
					<td>
						<?php echo (($dealOrder['DealOrder']['status'] == DealOrder::STATUS_COMPLETE)?__("Completed"):__("Incomplete/Failed")); ?>
					</td>
				</tr>
				<tr>
					<td>
						<b><?php echo __("Method of payment");?></b>
					</td>
					<td>
						<?php echo __("Paypal"); ?>
					</td>
				</tr>
				<tr>
					<td>
						<b><?php echo __("Amount");?></b>
					</td>
					<td>
						<?php echo cr("DealConfig.currency_symbol").$dealOrder['DealOrder']['amount']; ?>
					</td>
				</tr>
				<?php if($dealOrder['DealOrder']['status'] == DealOrder::STATUS_COMPLETE && isset($dealOrder['DealOrder']['admin_note']['payment_date'])) { ?>
				<tr>
					<td>
						<b><?php echo __("Payment date");?></b>
					</td>
					<td>
						<?php echo date("Y-m-d",strtotime($dealOrder['DealOrder']['admin_note']['payment_date'])); ?>
					</td>
				</tr>
				<?php } else { ?>
				<tr>
					<td>
						<b><?php echo __("Retry payment"); ?></b>
					</td>
					<td>
						<?php echo $html->link(__("Proceed to pay"),array("action"=>"prepareInvoice",$dealOrder['DealOrder']['id'])); ?>
					</td>
				</tr>
				<?php } ?>
			</tbody>
		</table>
	</div>
</div>
